createKeyPressEvent

Creates a new KeyEvent instance with the KEY_PRESS event type and the given params.

Return

a new KeyEvent instance

Parameters

params

the key event parameters

Throws

if the event creation has been failed

when the document is closed